package com.easyder.wrapper.base.view;

import android.app.Activity;

import com.gyf.barlibrary.ImmersionBar;

/**
 * Author:  winds
 * Data:    2018/6/13
 * Version: 1.0
 * Desc:
 */


public class ImmersionBarDelegate {

    public ImmersionBar immersionBar;

    public ImmersionBarDelegate init(Activity activity) {
        immersionBar = ImmersionBar.with(activity);
        immersionBar.init();
        return this;
    }

    public ImmersionBar getImmersionBar() {
        return immersionBar;
    }


    public void destroy() {
        if (immersionBar != null) {
            immersionBar.destroy();
        }
    }
}
